<?php
/**
 * Prado Portal.
 *
 * @author Steen Rabol <steen.rabol@gmail.com>
 * @link http://www.pradoportal.dk/
 * @copyright Copyright &copy; 2006,2007,2008 Steen Rabol
 * @license http://www.pradoportal.dk
 * @version $Id: PPLanguageControl.php 330 2009-01-28 18:07:21Z steen.rabol $
 *
 */

class PPLanguageControl extends TWebControl
{

	public function render($writer)
	{
		$css 	= "";
		$style	= "";

		if($this->CssClass != "")
		{
			$css = "class=\"" . $this->CssClass . "\"";
		}

		$elm = "<span";
		$elm = trim($elm . " " . $css);
		$elm = trim($elm . " " . $style);
		$elm .= ">";
		$writer->write($elm);

		if($this->HasControls)
		{
			$controls = $this->Controls;
			foreach($controls as $control)
			{
				$control->render($writer);
				$writer->write("&nbsp;");
			}
		}

		$writer->write("</span>");
	}
}
?>